﻿using LayuiMvc.Util.EnumUtil;
using LayuiMvc.DataEntity.DataEnum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LayuiMvc.DataModel.Identity
{
    /// <summary>
    /// 用户信息业务模型
    /// </summary>
   public  class UserMsgModel
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 是否登录
        /// </summary>
        public bool IsLogin { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public int Sex { get; set; }

        /// <summary>
        /// 头像地址
        /// </summary>
        public string HeadImgUrl { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public string RegisterTime { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsBanned { get; set; }

        /// <summary>
        /// 用户身份标识
        /// </summary>
        public UserIdentityEnum UserIdentity { get; set; }

        public string UserIdentityStr
        {
            get { return EnumExtend.GetDescription(UserIdentity); }
        }

        /// <summary>
        /// 是否认证
        /// </summary>
        public bool IsApprove { get; set; }

        /// <summary>
        ///认证信息
        /// </summary>
        public string ApproveMsg { get; set; }

        /// <summary>
        /// 个人介绍
        /// </summary>
        public string Introduce { get; set; }
    }
}
